package com.crusade.calculator;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

public class IntroActivity extends Activity 
{

    @Override
    protected void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        //FEATURE_CACULATE_NO_TITLE[
        Window win = getWindow();
        win.requestFeature(Window.FEATURE_NO_TITLE);
        //FEATURE_CACULATE_NO_TITLE]
        setContentView(R.layout.activity_intro);
        //FEATURE_CALCULATE_MAINLOGOIMAGEBTN [
        ImageButton logobtn = (ImageButton) findViewById(R.id.mainImageBtn);
        logobtn.setOnClickListener(new OnClickListener() 
        {
			
			@Override
			public void onClick(View v) 
			{
				// TODO Auto-generated method stub
				Intent caculateIntent = new Intent(getApplicationContext(), CalculateActivity.class);
				startActivity(caculateIntent);
			}
		}); //FEATURE_CALCULATE_MAINLOGOIMAGEBTN ]
    
    }//end onCreate

    @Override
    public boolean onCreateOptionsMenu(Menu menu) 
    {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }//end onCreateOptionsMenu
    
}// end class MainActivity
